<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title>layui在线调试</title>
    <link rel="stylesheet" href="../../layui/css/layui.css" media="all">
    <style>
        body{background: white;width: 100%}
        .color{ color: #1E9FFF!important;font-weight: bold}
        .select input{height: 35px!important;width: 200px}
        .selects select {
            height: 33px;
            width: 140px;
            color: #333;
            border: 1px solid #e6e6e6
        }
    </style>
</head>
<body>
<!--<span class="layui-breadcrumb" style="margin-left: 10px;margin-top: 6px;display: block">-->
<!--<span class="color">学籍信息&nbsp;-&nbsp;单一查询</span>-->
<!--</span>-->
<fieldset class="layui-elem-field site-demo-button" style="margin-top: 10px;width: 100%;">
    <legend style="font-size: 14px"><span class="color">新生学籍资料</span></legend>
    <div class="layui-form select">
        <table class="layui-table">
            <tr>
                <td style="border: none">
                    <div class="layui-inline">
                        <label class="layui-form-label" style="width:90px;">单位</label>
                        <div class="layui-input-inline" style="height: 30px">
                            <select name="quiz">
                                <option value="">请选择</option>
                                <option value="1">西安欧亚学院</option>
                                <option value="2">学生发展处</option>
                                <option value="3">图文信息中心</option>
                                <option value="4">信息工程学院</option>
                                <option value="5">人文教育学院</option>
                            </select>
                        </div>
                    </div>
                </td>
                <td style="border: none">
                    <div class="layui-inline">
                        <label class="layui-form-label" style="width:90px;">专业</label>
                        <div class="layui-input-inline" style="height: 30px">
                            <select name="quiz">
                                <option value="">请选择</option>
                                <option value="1">学前教育</option>
                                <option value="2">国际基础教育</option>
                                <option value="3">工程管理</option>
                                <option value="4">软件工程</option>
                                <option value="5">电子信息工程</option>
                            </select>
                        </div>
                    </div>
                </td>
                <td style="border: none">
                    <div class="layui-inline">
                        <label class="layui-form-label" style="width:90px;">年级</label>
                        <div class="layui-input-inline" style="height: 30px">
                            <select name="quiz">
                                <option value="">请选择</option>
                                <option value="1">2014</option>
                                <option value="2">2015</option>
                                <option value="3">2016</option>
                                <option value="4">2017</option>
                            </select>
                        </div>
                    </div>
                </td>
            </tr>
            <tr>
                <td style="border: none">
                    <div class="layui-inline">
                        <label class="layui-form-label" style="width:90px;">社区</label>
                        <div class="layui-input-inline" style="height: 30px">
                            <select name="quiz">
                                <option value="">请选择</option>
                                <option value="1">德鲁克社区</option>
                                <option value="2">国际社区</option>
                                <option value="3">第一青年社区</option>
                                <option value="4">第二青年社区</option>
                                <option value="5">第三青年社区</option>
                                <option value="6">第四青年社区</option>
                            </select>
                        </div>
                    </div>
                </td>
                <td style="text-align: center;border: 0;">
                    <button class="layui-btn layui-btn-sm layui-btn-normal">查询</button>
                    <button class="layui-btn layui-btn-sm layui-btn-normal">批量打印</button>
                </td>
                <td style="border: none"></td>
            </tr>
        </table>
    </div>
</fieldset>
<table class="layui-table" lay-size="sm">
    <thead>
        <td>序号</td>
        <td>专业/方向</td>
        <td>年级</td>
        <td>班级</td>
        <td>学号</td>
        <td>姓名</td>
        <td>状态</td>
        <td>操作</td>
    </thead>
    <tr>
        <td>01</td>
        <td>(01112001)英语（专升本）</td>
        <td>1</td>
        <td>英语专升本1701</td>
        <td>17610108910126</td>
        <td>梁雅</td>
        <td>确认完成</td>
        <td><span class="show" style="color: blue;text-decoration: underline;cursor: pointer">查看</span></td>
    </tr>
    <tr>
        <td>02</td>
        <td>(0111500108)儿童英语教育</td>
        <td>1</td>
        <td>英语专升本1701</td>
        <td>	17130324110114</td>
        <td>	唐明汝</td>
        <td>确认完成</td>
        <td><span class="show" style="color: blue;text-decoration: underline;cursor: pointer">查看</span></td>
    </tr>
    <tr>
        <td>02</td>
        <td>	(0111500203)小学教育</td>
        <td>1</td>
        <td>	统本教育学1701</td>
        <td>		17610809110083</td>
        <td>		刘成艳</td>
        <td>尚未填写</td>
        <td><span class="show" style="color: blue;text-decoration: underline;cursor: pointer">查看</span></td>
    </tr>
</table>

<div id="show" style="display: none;padding: 5px">
    <table class="layui-table" lay-size="sm">
        <tr>
            <td colspan="3">
                <h2> 新生学籍资料</h2>
            </td>
        </tr>
        <tr>
            <td>学号:17610108910126</td>
            <td>中文姓名:梁雅</td>
            <td>身份证号:510823199612161067</td>
        </tr>
        <tr>
            <td>学制:专升本</td>
            <td>分院:人文教育学院</td>
            <td>专业/方向:英语（专升本）</td>
        </tr>
        <tr>
            <td>年级:1</td>
            <td>班级:英语专升本1701</td>
            <td>培养类型:专升本</td>
        </tr>
        <tr>
            <td>入学时间:2017/09/01</td>
            <td>缴费情况:缴清</td>
            <td>状态:在读</td>
        </tr>
    </table>
    <table class="layui-table" lay-size="sm">
        <tr>
            <td colspan="3">
                <h2>基本资料</h2>
            </td>
        </tr>
        <tr>
            <td>出生年月日:1996/12/16</td>
            <td>性别:女</td>
            <td>姓名拼音：</td>
        </tr>
        <tr>
            <td>
                <div class="selects">
                    <label>血型：</label>
                    <select>
                        <option>--请选择--</option>
                        <option>B</option>
                        <option>O</option>
                    </select>
                </div>
            </td>
            <td>民族:汉</td>
            <td>高考生源地：陕西</td>
        </tr>
        <tr>
            <td>
              籍贯：<input type="text" style="width: 140px;height: 25px" value="四川省广元市">
            </td>
            <td>*华侨港澳台:否</td>
            <td>特殊人员情况:正常</td>
        </tr>

        <tr>
            <td>
                *戶籍所在地：<input type="text" style="width: 140px;height: 25px" value="四川省绵阳市">
            </td>
            <td>
                <div class="selects">
                    <label>学生类别：</label>
                    <select>
                        <option>统招</option>
                        <option>--请选择--</option>
                        <option>成教</option>
                    </select>
                </div>
            </td>
            <td>
                <div class="selects">
                    <label>健康状况：</label>
                    <select>
                        <option>良好</option>
                        <option>--请选择--</option>
                        <option>残疾</option>
                    </select>
                </div>
            </td>
        </tr>

        <tr>
            <td>
                *电子信箱：<input type="text" style="width: 140px;height: 25px" value="17868804701@163.com">
            </td>
            <td>
                *行动电话：<input type="text" style="width: 140px;height: 25px" value="17868804701">
            </td>
            <td>
                *邮政编码：<input type="text" style="width: 140px;height: 25px" value="621000">
            </td>
        </tr>
    </table>
    <table class="layui-table" lay-size="sm">
        <tr>
            <td colspan="4">
                <h2>宿舍资料</h2>
            </td>
        </tr>
        <tr>
            <td>社区:第二社区</td>
            <td>辅导员:常佳</td>
            <td>公寓楼:西3</td>
            <td>宿舍号:613</td>
        </tr>
        <tr>
            <td colspan="4">
                *校外住宿地址: <input type="text" style="width: 900px;height: 25px" placeholder="校外住址">
            </td>
        </tr>
    </table>

    <table class="layui-table" lay-size="sm">
        <tr>
            <td colspan="4">
                <h2>本人学历及社会经历(从小学填起)</h2>
            </td>
        </tr>
        <tr>
            <td>
                自何年何月</td>
            <td>至何年何月</td>
            <td>在何地何学校或何单位学校或工作？任何职？</td>
            <td>证明人</td>
        </tr>
        <tr>
            <td>
                2002 / 9</td>
            <td>2008 / 7</td>
            <td>剑阁实验小学 , 小组长</td>
            <td>黄菊</td>
        </tr>
        <tr>
            <td>
                2008 / 9</td>
            <td>2011 / 7</td>
            <td>绵阳富乐中学 , 英语课代表</td>
            <td>刘小泉</td>
        </tr>
        <tr>
            <td>
                2011 / 9</td>
            <td>	2014 / 6</td>
            <td>绵阳第一中学 , 语文课代表</td>
            <td>	马海涛</td>
        </tr>
    </table>
    <table class="layui-table" lay-size="sm">
        <tr>
            <td colspan="4">
                <h2>直系亲属或主要社会关系情况</h2>
            </td>
        </tr>
        <tr>
            <td>称呼</td>
            <td>中文姓名</td>
            <td>政治面貌</td>
            <td>职务</td>
            <td>工作单位</td>
            <td>联络电话</td>
        </tr>
        <tr>
            <td>父</td>
            <td>梁润平</td>
            <td>群众</td>
            <td>个体户</td>
            <td>无</td>
            <td>15328118197</td>
        </tr>
        <tr>
            <td>母</td>
            <td>罗莉芳</td>
            <td>群众</td>
            <td>个体户</td>
            <td>无</td>
            <td>15386664599</td>
        </tr>
    </table>
    <table lay-size="sm" class="layui-table">
        <tr>
            <td colspan="4" style="text-align: center">
                <button class="layui-btn layui-btn-sm layui-btn-normal">保存</button>
                <button class="layui-btn layui-btn-sm layui-btn-normal">打印</button>
            </td>
        </tr>
    </table>
</div>
<script src="../../layui/layui.js"></script>
<script src="../../layui/jquery-1.12.4.min.js"></script>
<script>
    layui.use('element', function(){
        var element = layui.element; //导航的hover效果、二级菜单等功能，需要依赖element模块

        //监听导航点击
        element.on('nav(demo)', function(elem){
            //console.log(elem)
            layer.msg(elem.text());
        });
    });
</script>
<script>
    layui.use(['form', 'layedit', 'laydate'], function(){
        var form = layui.form
            ,layer = layui.layer
            ,layedit = layui.layedit
            ,laydate = layui.laydate;

        //日期
        laydate.render({
            elem: '#date'
        });
        laydate.render({
            elem: '#date1'
        });

        //创建一个编辑器
        var editIndex = layedit.build('LAY_demo_editor');

        //自定义验证规则
        form.verify({
            title: function(value){
                if(value.length < 5){
                    return '标题至少得5个字符啊';
                }
            }
            ,pass: [/(.+){6,12}$/, '密码必须6到12位']
            ,content: function(value){
                layedit.sync(editIndex);
            }
        });

        //监听指定开关
        form.on('switch(switchTest)', function(data){
            layer.msg('开关checked：'+ (this.checked ? 'true' : 'false'), {
                offset: '6px'
            });
            layer.tips('温馨提示：请注意开关状态的文字可以随意定义，而不仅仅是ON|OFF', data.othis)
        });

        //监听提交
        form.on('submit(demo1)', function(data){
            layer.alert(JSON.stringify(data.field), {
                title: '最终的提交信息'
            })
            return false;
        });


    });
</script>
<script>
    $(function () {
        $(".show").click(function () {
            $(".show").click(function () {
                layer.open({
                    type: 1,
                    title: '学生详情',
                    area: ['100%', '100%'],
                    content: $('#show')
                });
            })
        })
    })
</script>
</body>
</html>
